package org.jrpc.core.event;

import org.jrpc.base.ServiceInfo;
import org.springframework.context.ApplicationEvent;

/**
 * Created by chenyuncong on 2019/4/23.
 */
public class ServiceEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    private ServiceInfo serviceInfo;

    public ServiceEvent(Object source, ServiceInfo serviceInfo) {
        super(serviceInfo);
        this.serviceInfo=serviceInfo;
    }

    public ServiceInfo getServiceInfo() {
        return serviceInfo;
    }

    public void setServiceInfo(ServiceInfo serviceInfo) {
        this.serviceInfo = serviceInfo;
    }
}
